home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8679 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.7 KB  |  58 lines

  1. Newsgroups: comp.lang.c
  2. Path: ddvictor.dundee.ATTGIS.COM!news
  3. From: Robin Paterson <Robin.Paterson@dundee.attgis.com>
  4. Subject: Re: Compiler Q.
  5. X-Nntp-Posting-Host: 153.73.1.248
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <313CD343.21F1@dundee.attgis.com>
  8. Sender: news@ddvictor.dundee.ATTGIS.COM (Ref news)
  9. Content-Transfer-Encoding: 7bit
  10. Organization: NCR (AT&T GIS ?)
  11. References: <1995Jul21.151901.17243@marcam.com> <19950724.112633.57@jporritt.demon.co.uk> <1995Jul24.171318.27480@marcam.com> <dqua.806794299@nntp.earthlink.net> <danpop.806891085@rscernix> <3vav0h$2be@lastactionhero.rs.itd.umich.edu> <danpop.807028022@rscernix> <Pine.BSI.3.91.960301022134.2506A-100000@river.biddeford.com>
  12. Mime-Version: 1.0
  13. Date: Tue, 5 Mar 1996 23:50:27 GMT
  14. X-Mailer: Mozilla 2.0 (Win16; I)
  15.  
  16. Wayne Ward wrote:
  17. > 1. What are the "standard system directories"?    Fundamentally, /usr/include for headers and /usr/lib
  18.     for libraries. This *will* vary depending on the
  19.     platform you're on, what development system you use,
  20.     and who installed it.
  21.  
  22. > 2. Where is this list of directories?    If you're using GNU C/C++, if you do a simple
  23.     compile, say 'hello world', and compile with -v
  24.     the compiler will tell you where it looks for things
  25.     by default. (These paths are built in to the compiler)
  26.      
  27. > When I compile a program I enter "-L" to include a path to use. Is there
  28. > some sort of file I can put this path in that the compiler will search?
  29.  
  30.     Yes. It's called a Makefile :-)
  31.     -L is actually the flag to specify the path for
  32.     other libraries.
  33.  
  34. > I'am trying to compile my first motif program which gets an error that
  35. > tells me that an include file can not be found <Xm/PushB.h>. When I add
  36. > -I /usr/X11R6/include/Xm, i still get the error. How do I correct this?
  37. > Is there any other documentation,beside the man page, that would help me
  38.     Try using -I/usr/X11R6/include, this way the subdirectory
  39.     'Xm' will be found in /usr/X11R6/include, which will enable
  40.     the location of Xm/PushB.h (assuming PushB.h resides in
  41.      /usr/X11R6/include/Xm & Xm resides in /usr/X11R6/include)
  42.  
  43.     Any book on writing C, any book on writing X apps,
  44.     the GNU C/C++ Compiler manual.
  45.  
  46.     From the general content of your post, it would appear
  47.     you're lacking a good book. Aside from obtaining copies
  48.     of the GNU C/C++ manual and the GNU make manual, could I
  49.     perhaps put in a plug for 'A Book on C' by Kelley & Pohl.
  50.     This has nice bits about simple makefiles and libraries,
  51.     as well as being a good C reference book.
  52.  
  53. ---+---                                                       ---+---
  54.    Robin Paterson          email: Robin.Paterson@dundee.attgis.com
  55.    NCR  (AT&T GIS ?)       voice: 44 1382 592470  (GMT+0)
  56.     'Defy the logic of Alphabets' - Zodiac Mindwarp
  57. ---+---                                                       ---+---
  58.